public class Salary {
    public void pay(SE se){
        System.out.println("SE的薪水："+(se.basePay+se.assessmentWages)+"元");
    }
    public void pay(PM pm){
        System.out.println("PM的薪水："+(pm.basePay+pm.projectFunds+pm.bonus)+"元");
    }


    public static void main(String[] args) {
        Salary s=new Salary();
        SE s1=new SE(1580,2000.50);
        PM p=new PM(2000,2550,500.50);
        s.pay(s1);
        s.pay(p);
    }
}
